package com.useeinfo.asg.modules.logging.biz;

import com.useeinfo.asg.common.utils.CommUtil;
import com.useeinfo.asg.modules.logging.dao.ResourceDao;
import com.useeinfo.asg.modules.logging.entity.Resource;
import com.useeinfo.framework.extend.biz.CrudBiz;
import com.xiaoleilu.hutool.util.CollectionUtil;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by GeniusJ on 2017-05-12.
 */
@Service("ResourceBizWeb")
public class ResourceBiz extends CrudBiz<ResourceDao,Resource> {

    // 自定义hql
    public List<Resource> queryObjects(String jpql, Map<String, Object> params) {

        return dao.findObjects(jpql, params);
    }

    // 原生查询
    public List<Object> queryListByNative(String sql) {

        return dao.findListByNative(sql);
    }
}
